<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Springboot集成thymeleaf模板引擎</title>
</head>
<body>
    <h1>thymeleaf 各种表达式的使用</h1>
<table class="table">
    <thead>
    <th th:each="userhead : ${userhead}" th:text="${userhead.key}"></th>
    <th th:each="userhead : ${userhead}" th:text="${userhead.value}"></th>
    </thead>
    <tbody >
    <td th:each="userinfo:${userinfo}" th:text="${userinfo}"></td>
    <td th:each="bookinfo:${books}" th:text="${bookinfo.title}"></td>
    </tbody>
</table>
    <ul>
        <li th:each="book:${books}" th:text="${book.title}" ></li>
        <li th:each="book:${books}" th:text="${book.cost}"></li>
        <li th:each="book:${books}" th:text="${book.publisher}"></li>
    </ul>

</body>
</html>